package com.zzt.questionbankusermanager.service;


import com.zzt.questionbankusermanager.bean.MenuItem;
import com.zzt.questionbankusermanager.bean.dto.MenuItemDTO;
import com.zzt.questionbankusermanager.bean.dto.MenuList;
import com.zzt.questionbankusermanager.bean.dto.PageResult;
import com.zzt.questionbankusermanager.bean.dto.Result;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

public interface MenuItemService {
    public MenuList getAll();
    public List<MenuItemDTO> getMenuList();
    public PageResult<MenuItemDTO> getAPage(PageRequest pageRequest);
    public PageResult<MenuItemDTO> getASpecialPage(Specification<MenuItem> specification, PageRequest pageRequest);
    public Result addMenuItem(MenuItemDTO menuItemDTO);
    public Result editMenuItem(MenuItemDTO menuItemDTO);
    public Result deleteMenuItem(Long menuItemId);
}
